package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户信息对象 sys_tenant
 * 
 * @author kuaidou
 * @date 2021-08-20
 */
public class SysTenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** uuid */
    private Long id;

    /** 租户编号 */
    @Excel(name = "租户编号")
    private String tenantCode;

    /** 租户名称 */
    @Excel(name = "租户名称")
    private String tenantName;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactMan;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactNumber;

    /** 联系地址 */
    @Excel(name = "联系地址")
    private String address;

    /** 支付状态（0未支付 1已支付） */
    @Excel(name = "支付状态", readConverterExp = "0=未支付,1=已支付")
    private String playStatus;

    /** 付款时间 */
    private Date playTime;

    /** 购买到期时间 */
    private Date buyExpirationTime;

    /** 赠送时长 */
    private String presentTime;

    /** 实际到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    /** 租户类型 */
    @Excel(name = "租户类型")
    private String type;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 是否删除（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantCode(String tenantCode) 
    {
        this.tenantCode = tenantCode;
    }

    public String getTenantCode() 
    {
        return tenantCode;
    }
    public void setTenantName(String tenantName) 
    {
        this.tenantName = tenantName;
    }

    public String getTenantName() 
    {
        return tenantName;
    }
    public void setContactMan(String contactMan) 
    {
        this.contactMan = contactMan;
    }

    public String getContactMan() 
    {
        return contactMan;
    }
    public void setContactNumber(String contactNumber) 
    {
        this.contactNumber = contactNumber;
    }

    public String getContactNumber() 
    {
        return contactNumber;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPlayStatus(String playStatus) 
    {
        this.playStatus = playStatus;
    }

    public String getPlayStatus() 
    {
        return playStatus;
    }
    public void setPlayTime(Date playTime) 
    {
        this.playTime = playTime;
    }

    public Date getPlayTime() 
    {
        return playTime;
    }
    public void setBuyExpirationTime(Date buyExpirationTime) 
    {
        this.buyExpirationTime = buyExpirationTime;
    }

    public Date getBuyExpirationTime() 
    {
        return buyExpirationTime;
    }
    public void setPresentTime(String presentTime) 
    {
        this.presentTime = presentTime;
    }

    public String getPresentTime() 
    {
        return presentTime;
    }
    public void setExpirationTime(Date expirationTime) 
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime() 
    {
        return expirationTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantCode", getTenantCode())
            .append("tenantName", getTenantName())
            .append("contactMan", getContactMan())
            .append("contactNumber", getContactNumber())
            .append("address", getAddress())
            .append("playStatus", getPlayStatus())
            .append("playTime", getPlayTime())
            .append("buyExpirationTime", getBuyExpirationTime())
            .append("presentTime", getPresentTime())
            .append("expirationTime", getExpirationTime())
            .append("type", getType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}